<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="shortcut icon" href="../../img/icon/bitbug_favicon.ico">
		<link rel="stylesheet" href="../../css/mui/mui.min.css" />
		<link rel="stylesheet" href="../../css/myAlert.css" />
		<title></title>
		<style>
			html,
			body {
				background: #FFFFFF !important;
			}
			
			.up_lo {
				display: block;
				position: fixed;
				top: 0px;
				left: 0px;
				right: 0px;
				bottom: 0px;
				width: 100%;
				height: 100%;
				background: rgba(0, 0, 0, 0.5);
			}
			
			.up_font {
				width: 100%;
				position: fixed;
				right: 0px;
				color: #FFFFFF;
				text-align: center;
			}
			
			.up_font img {
				width: 5rem;
				width: 5rem;
				position: fixed;
				right: 0px;
			}
			
			.fx_t {
				position: fixed;
				right: 30%;
				left: 30%;
				top: 25%;
				color: #FFFFFF;
				font-size: 1.2rem;
				text-align: center;
				line-height: 180%;
			}
			
			@media only screen and (min-device-width: 414px) and (max-device-width: 736px) and (-webkit-device-pixel-ratio: 3) {
				.up_font img {
					width: 7rem;
					width: 7rem;
					position: fixed;
					right: 0px;
				}
				.fx_t {
					position: fixed;
					right: 30%;
					left: 30%;
					top: 25%;
					color: #FFFFFF;
					font-size: 1.4rem;
					text-align: center;
					line-height: 180%;
				}
			}
		</style>
	</head>

	<body>
		<div class="up_lo" id="up_lo"></div>
		<div id="up_font">
			<div class="up_font">
				<img src="../../img/icon/gif.gif">
			</div>
			<div class="fx_t">
				<div>请点击右上角</div>
				<div>在浏览器中打开下载</div>
			</div>
		</div>
	</body>

	<script type="text/javascript" src="../../js/mui/mui.min.js"></script>
	<script type="text/javascript" src="../../js/jquery/jquery-2.1.4.min.js"></script>
	<script type="text/javascript" src="../../js/myAlert.js"></script>
	<script type="text/javascript" src="../../js/common.js"></script>

	<script type="text/javascript">
		var ua = window.navigator.userAgent.toLowerCase();
		if(ua.match(/MicroMessenger/i) == 'micromessenger') { //判断是否在微信内置浏览器打开网页
			$("#up_lo").css("display", "block");
			$("#up_font").css("display", "block");
		} else {
			$("#up_lo").css("display", "none");
			$("#up_font").css("display", "none");
			if($("#up_lo").css("display") == "none") {
				$.ajax({
					type: "get",
					url: serverUrl + "/platform/get_download",
					cache: false,
					async: false,
					contentType: "application/json; charset=utf-8",
					dataType: "json",
					crossDomain: true,
					success: function(data) {
						var obj = eval(data);
						if(obj.code == 0 && obj.data != null) {
							$.myToast("正在下载中，请稍等");
							window.location.href = obj.data.url;
						} else {
							$.myToast(obj.msg);
							return;
						}
					},
					error: function(XMLHttpRequest, status, errorThrown) {
						if(status == 'timeout') {
							$.myToast("请求超时");
						} else {
							$.myToast("请求网络服务数据失败");
						}
						return;
					}
				});

			}
		}
	</script>

</html>